﻿using Topshelf;

namespace LuceneApiServer
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            HostFactory.Run(x =>
            {
                x.Service<HttpApiService>();
                x.RunAsLocalSystem();
                //  x.StartManually();
                x.SetServiceName("LuceneApiServer");
                x.SetDisplayName("Lucene.net服务");
                x.SetDescription("Sample Web API Lucene.net Windows service 提供全文搜索功能服务");
            });
        }
    }
}